package com.xiangjun.feign.controller;

import com.xiangjun.feign.feignclient.HelloFeignTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
    private HelloFeignTest helloFeignTest;

    @GetMapping(value = "/test/search")
    public ResponseEntity<byte[]> queryTest(@RequestParam("s") String s){
        return helloFeignTest.test(s);
    }
}
